package com.dhh.util.manager;

import java.util.List;

import com.dhh.dao.DataBaseHelper;
import com.dhh.dao.DietDAO;
import com.dhh.vo.FoodDiet;

public class DietManager {
	private DietDAO dao;
	
	public DietManager(DataBaseHelper db){
		dao = new DietDAO(db);
	}
	
	public FoodDiet addDiet(FoodDiet diet){
		return dao.addDietAndRet(diet);
	}
	
	public FoodDiet getDiet(String id){
		return dao.getDiet(id);
	}
	
	public List<FoodDiet> getAllDiet(){
		return dao.getAllDiet();
	}
	
	public boolean deleteDiet(String id){
		return dao.removeDiet(id);
	}
}
